#include "optionItemFrame.h"

optionItem::optionItem(const QString &text, const QString &hidePath, const QString &showPath, QWidget *parent) : QWidget(parent)
{
    btn = new pollDownBtn(text, hidePath, showPath);
    SplitLine = new QFrame();
    SplitLine->setFrameShape(QFrame::HLine);
    SplitLine->setLineWidth(2);
    SplitLine->setStyleSheet(QSS::QFrame);
    connect(btn, SIGNAL(middleWidgetIsVisible(bool)), this, SLOT(middleWidgetVisible(bool)));
}

void optionItem::middleWidgetVisible(bool isVisible)
{
    setMiddleWidgetVisible(isVisible);
}

